// ss_dll_0.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"
#include "ss_dll_0.h"

Css_dll* gpDll = NULL;

// This is the constructor of a class that has been exported.
// see ss_dll_0.h for the class definition
Css_dll::Css_dll()
{
	return;
}

int Css_dll::add(int a, int b)
{
  return a+ b;
}

SS_DLL_0_API Css_dll* Create()
{
  if(gpDll)
  {
    delete gpDll;
  }

  gpDll = new Css_dll;
  return gpDll;
}
SS_DLL_0_API void Destroy()
{
  if(gpDll)
  {
    delete gpDll;
    gpDll = NULL;
  }
}